package com.aipg.rnp;

import org.dom4j.Element;

import java.io.Serializable;

public class RNPARET implements Serializable {

    private String RET_CODE;

    private String ERR_MSG;

    private String ISSENDSMS;

    public String getRET_CODE() {
        return RET_CODE;
    }

    public void setRET_CODE(String RET_CODE) {
        this.RET_CODE = RET_CODE;
    }

    public String getERR_MSG() {
        return ERR_MSG;
    }

    public void setERR_MSG(String ERR_MSG) {
        this.ERR_MSG = ERR_MSG;
    }

    public String getISSENDSMS() {
        return ISSENDSMS;
    }

    public void setISSENDSMS(String ISSENDSMS) {
        this.ISSENDSMS = ISSENDSMS;
    }

    public static RNPARET parse(Element element)
    {
        RNPARET item=new RNPARET();
        Element subElement=element.element("ISSENDSMS");
        if(subElement!=null)
        {
            item.setISSENDSMS(subElement.getText());
        }
        subElement=element.element("RET_CODE");
        if(subElement!=null)
        {
            item.setRET_CODE(subElement.getText());
        }
        subElement=element.element("ERR_MSG");
        if(subElement!=null)
        {
            item.setERR_MSG(subElement.getText());
        }
        return item;
    }
}

